package com.example.login.entity;

public class OrderInfo {
    private int order_id;
    private String username;
    private int product_id;
    private int product_img;
    private String product_title;
    private int product_price;
    private int product_count;
    private String address;
    private String mobile;

    public OrderInfo(
            int order_id,
            String username,
            int product_img, // 补充 product_img 参数（假设参数名应为 product_img）
            String product_title,
            int product_price,
            int product_count,
            String address,
            String mobile
    ) {
        this.order_id = order_id;
        this.username = username;
        this.product_img = product_img; // 正确赋值
        this.product_title = product_title;
        this.product_price = product_price; // 修正：使用传入的 product_price 参数
        this.product_count = product_count; // 修正：使用传入的 product_count 参数
        this.address = address; // 修正：使用传入的 address 参数
        this.mobile = mobile; // 修正：使用传入的 mobile 参数
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public int getProduct_img() {
        return product_img;
    }

    public void setProduct_img(int product_img) {
        this.product_img = product_img;
    }

    public String getProduct_title() {
        return product_title;
    }

    public void setProduct_title(String product_title) {
        this.product_title = product_title;
    }

    public int getProduct_price() {
        return product_price;
    }

    public void setProduct_price(int product_price) {
        this.product_price = product_price;
    }

    public int getProduct_count() {
        return product_count;
    }

    public void setProduct_count(int product_count) {
        this.product_count = product_count;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
